﻿using System.Diagnostics;

namespace Microsoft.Office.PowerPoint.STAMP.Core
{
    public class EventLogWriter
    {
        public static void WriteErrorLog(string message)
        {
            WriteLog(message, EventLogEntryType.Error);
        }
        
        public static void WriteInformationLog(string message)
        {
            WriteLog(message, EventLogEntryType.Information);
        }

        private static void WriteLog(string message, EventLogEntryType type)
        {
            EventLog.WriteEntry("STAMP", message, type);
        }
    }
}
